/**
 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.library.slayer.model;

import com.liferay.portal.kernel.annotation.AutoEscape;
import com.liferay.portal.model.BaseModel;
import com.liferay.portal.service.ServiceContext;

import com.liferay.portlet.expando.model.ExpandoBridge;

import java.io.Serializable;

import java.util.Date;

/**
 * The base model interface for the Book service. Represents a row in the &quot;library_Book&quot; database table, with each column mapped to a property of this class.
 *
 * <p>
 * This interface and its corresponding implementation {@link com.library.slayer.model.impl.BookModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.library.slayer.model.impl.BookImpl}.
 * </p>
 *
 * <p>
 * Never modify or reference this interface directly. All methods that expect a book model instance should use the {@link Book} interface instead.
 * </p>
 *
 * @author Ahmed Hasan
 * @see Book
 * @see com.library.slayer.model.impl.BookImpl
 * @see com.library.slayer.model.impl.BookModelImpl
 * @generated
 */
public interface BookModel extends BaseModel<Book> {
	/**
	 * Gets the primary key of this book.
	 *
	 * @return the primary key of this book
	 */
	public long getPrimaryKey();

	/**
	 * Sets the primary key of this book
	 *
	 * @param pk the primary key of this book
	 */
	public void setPrimaryKey(long pk);

	/**
	 * Gets the book id of this book.
	 *
	 * @return the book id of this book
	 */
	public long getBookId();

	/**
	 * Sets the book id of this book.
	 *
	 * @param bookId the book id of this book
	 */
	public void setBookId(long bookId);

	/**
	 * Gets the book title of this book.
	 *
	 * @return the book title of this book
	 */
	@AutoEscape
	public String getBookTitle();

	/**
	 * Sets the book title of this book.
	 *
	 * @param bookTitle the book title of this book
	 */
	public void setBookTitle(String bookTitle);

	/**
	 * Gets the author of this book.
	 *
	 * @return the author of this book
	 */
	@AutoEscape
	public String getAuthor();

	/**
	 * Sets the author of this book.
	 *
	 * @param author the author of this book
	 */
	public void setAuthor(String author);

	/**
	 * Gets the date added of this book.
	 *
	 * @return the date added of this book
	 */
	public Date getDateAdded();

	/**
	 * Sets the date added of this book.
	 *
	 * @param dateAdded the date added of this book
	 */
	public void setDateAdded(Date dateAdded);

	/**
	 * Gets the date modified of this book.
	 *
	 * @return the date modified of this book
	 */
	public Date getDateModified();

	/**
	 * Sets the date modified of this book.
	 *
	 * @param dateModified the date modified of this book
	 */
	public void setDateModified(Date dateModified);

	/**
	 * Gets a copy of this book as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}.
	 *
	 * @return the escaped model instance
	 * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler
	 */
	public Book toEscapedModel();

	public boolean isNew();

	public void setNew(boolean n);

	public boolean isCachedModel();

	public void setCachedModel(boolean cachedModel);

	public boolean isEscapedModel();

	public void setEscapedModel(boolean escapedModel);

	public Serializable getPrimaryKeyObj();

	public ExpandoBridge getExpandoBridge();

	public void setExpandoBridgeAttributes(ServiceContext serviceContext);

	public Object clone();

	public int compareTo(Book book);

	public int hashCode();

	public String toString();

	public String toXmlString();
}